Skip to content

Conversation

@sherif-olaboye
Copy link
Contributor

JIRA link

https://hee-tis.atlassian.net/browse/TD-6145

Description

I introduced a migration to add a new IncludeLearnerDeclarationPrompt bit field to the SelfAssessments table.
I added a check to ensure that when the IncludeLearnerDeclarationPrompt property is set to true, the IncrementLaunchCount method is executed.
I added the IncludeLearnerDeclarationPrompt property to the SelfAssessment class.
I also updated the GetSelfAssessmentForCandidateById method to include the IncludeLearnerDeclarationPrompt field.
Finally, I updated the RequireProcessAgreementFilter to check whether the SelfAssessment is configured to display the learner declaration agreement.

Screenshots

When IncludeLearnerDeclarationPrompt is false
image
When IncludeLearnerDeclarationPrompt is true
image


Developer checks

(Leave tasks unticked if they haven't been appropriate for your ticket.)

I have:

  • Run the IDE auto formatter on all files I’ve worked on and made sure there are no IDE errors relating to them
  • Written or updated tests for the changes (accessibility ui tests for views, tests for controller, data services, services, view models created or modified) and made sure all tests are passing
  • Manually tested my work with and without JavaScript (adding notes where functionality requires JavaScript)
  • Tested any Views or partials created or changed with Wave Chrome plugin. Addressed any valid accessibility issues and documented any invalid errors
  • Updated my Jira ticket with testing notes, including information about other parts of the system that were touched as part of the MR and need to be tested to ensure nothing is broken
  • Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks in the GitHub PR ‘Files Changed’ tab
    Either:
  • Documented my work in Confluence, updating any business rules applied or modified. Updated GitHub readme/documentation for the repository if appropriate. List of documentation links added/changed:
  • Confirmed that none of the work that I have undertaken requires any updates to documentation

}

selfAssessmentService.IncrementLaunchCount(selfAssessmentId, delegateUserId);
if (selfAssessment.IncludeLearnerDeclarationPrompt)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kevwhitt-hee what was the intention behind checking this thing here? If it is that we don't want to increment the count if a learner just launches a SA, sees the challenge screen and decides not to proceed, then what happens if the SA is configured not to show the challenge screen? At that time we won't increment the count according to the code here. Could you please tell us in detail about the intended logic so that Sherif could correct this.

Copy link
Collaborator

@rshrirohit rshrirohit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kevwhitt-hee please see the inline comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants